home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-SPAR.{_A / VGA.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  453b  |  31 lines

  1. /*
  2.  *    Access to VGA videoram
  3.  *
  4.  *    (c) 1998 Martin Mares <mj@ucw.cz>
  5.  */
  6.  
  7. #ifndef _LINUX_ASM_VGA_H_
  8. #define _LINUX_ASM_VGA_H_
  9.  
  10. #define VT_BUF_HAVE_RW
  11.  
  12. static inline void scr_writew(u16 val, u16 *addr)
  13. {
  14.     if ((long) addr < 0)
  15.         *addr = val;
  16.     else
  17.         writew(val, (unsigned long) addr);
  18. }
  19.  
  20. static inline u16 scr_readw(const u16 *addr)
  21. {
  22.     if ((long) addr < 0)
  23.         return *addr;
  24.     else
  25.         return readw((unsigned long) addr);
  26. }
  27.  
  28. #define VGA_MAP_MEM(x) (x)
  29.  
  30. #endif
  31.